-- GENERATED SPELL FOR [Titanium Siegebreaker] --


function spell0_28961(pUnit, Event) --@Blade Turning,Self--
pUnit:FullCastSpellOnTarget(52891,pUnit)
pUnit:RegisterEvent('Sorts_28961', 4268, 1)
end

function spell1_28961(pUnit, Event) --@Blade Turning,Self--
pUnit:FullCastSpellOnTarget(59173,pUnit)
pUnit:RegisterEvent('Sorts_28961', 6256, 1)
end

function spell2_28961(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28961', 6340, 1)
end

function spell3_28961(pUnit, Event) --@Penetrating Strike,n/a--
pUnit:FullCastSpellOnTarget(52890,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28961', 653, 1)
end

function spell4_28961(pUnit, Event) --@Piercing Howl,Self--
pUnit:FullCastSpellOnTarget(23600,pUnit)
pUnit:RegisterEvent('Sorts_28961', 6346, 1)
end

function Sorts_28961(pUnit, Event)
local choix_sorts_28961 = math.random(0, 4)
if choix_sorts_28961 == 0 then
pUnit:RegisterEvent('spell0_28961', 1, 1)
end
if choix_sorts_28961 == 1 then
pUnit:RegisterEvent('spell1_28961', 1, 1)
end
if choix_sorts_28961 == 2 then
pUnit:RegisterEvent('spell2_28961', 1, 1)
end
if choix_sorts_28961 == 3 then
pUnit:RegisterEvent('spell3_28961', 1, 1)
end
if choix_sorts_28961 == 4 then
pUnit:RegisterEvent('spell4_28961', 1, 1)
end
end

function mob28961_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28961', math.random(1500, 3000), 1)
end

function mob28961_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28961_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28961_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28961, 1, 'mob28961_Action')
RegisterUnitEvent(28961, 2, 'mob28961_Leave')
RegisterUnitEvent(28961, 3, 'mob28961_Kill')
RegisterUnitEvent(28961, 4, 'mob28961_Die')
